home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: Operators <<= and >>=
- Date: 24 Mar 1996 05:37:52 GMT
- Organization: Netcom
- Message-ID: <4j2n3g$j4l@dfw-ixnews4.ix.netcom.com>
- References: <4iva5m$4q5@access4.digex.net>
- NNTP-Posting-Host: den-co25-11.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Sat Mar 23 11:37:52 PM CST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4iva5m$4q5@access4.digex.net>, car@access4.digex.net says...
- >When / why would one overload the operators <<= and >>= ?
-
- If you overload operators '<<' and/or '>>' to mean something
- that returns a value (analogous to the built-in meaning),
- then you should define '<<=' and/or '>>=' so that:
-
- a = a << b;
-
- produces the same result as
-
- a <<= b;
-
- john lilley
-
-